| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import $ from 'jquery' |
||
| 10 | export function acceptCookies ($container, cookieName, expireDays) { |
||
| 11 | return function (e) { |
||
| 12 | const date = new Date() |
||
| 13 | date.setTime(date.getTime() + (expireDays*24*60*60*1000)) |
||
| 14 | document.cookie = cookieName + "=true; expires=" + date.toGMTString() |
||
| 15 | |||
| 16 | $container.remove() |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 41 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.